package main

import (
	"fmt"
	"os"
)

func main() {
	var col1,col3 []string
	var col2 []int

	pfile,err:=os.Open("data.txt")
	defer pfile.Close()
	if err!= nil { return }

	for {
		var s1,s3 string
		var s2 int
		if n,err:=fmt.Fscanf(pfile, "%s %d %s\n", &s1, &s2, &s3); n>0 {
			col1=append(col1, s1)
			col2=append(col2, s2)
			col3=append(col3, s3)
		} else if err!= nil {
			break
		}
	}

	fmt.Println(col1);
	fmt.Println(col2);
	fmt.Println(col3);
}
